What is the meaning of the word "just deserts"?

Definitions:

  1. an outcome in which virtue triumphs over vice, often ironically copy to clipboard noun
    • The hypocritical politician got their just deserts when the public found out they smoked marijuana regularly while at the same time opposing its legality for the citizenry. copy to clipboard

Synonyms: